import { Component } from '@angular/core';
import { NzButtonModule } from 'ng-zorro-antd/button';
import {
  NzNotificationModule,
  NzNotificationService,
} from 'ng-zorro-antd/notification';

@Component({
  selector: 'app-notification-basic-demo',
  standalone: true,
  imports: [NzNotificationModule, NzButtonModule],
  templateUrl: './notification-basic-demo.component.html',
  styleUrl: './notification-basic-demo.component.less',
})
export class NotificationBasicDemoComponent {
  constructor(private _notificationService: NzNotificationService) {}

  notify() {
    this._notificationService.blank(
      'Notification Title',
      'This is the content of the notification. This is the content of the notification. This is the content of the notification.'
    );
  }
}
